package com.token.service;

import java.util.Objects;

/**
 * 进行处理后无任何返回值
 *
 * @auther: henriy
 * @Date: 2023/12/29
 */
@FunctionalInterface
public interface Consumer<T> {

    void accept(T str);

    default Consumer<T> andThen(Consumer<? super T> after) {
        Objects.requireNonNull(after);
        return (T t) -> {
            accept(t);
            after.accept(t);
        };
    }

}
